.\govc_env.ps1
govc find . -type m

#  显示虚拟机信息
govc vm.info /ha-datacenter/vm/Win10_不忘初心
# 显示vmrc控制台链接
govc vm.console /ha-datacenter/vm/Win10_不忘初心
# 显示h5控制台链接(需要vcenter/FQDN)
# govc vm.console -h5 /ha-datacenter/vm/Win10_不忘初心
# 启动控制太
$cmd_str=(govc vm.console /ha-datacenter/vm/Win10_不忘初心)
start $cmd_str
# 仅支持vcenter
govc vm.clone -vm /ha-datacenter/vm/Win10_不忘初心  /ha-datacenter/vm/Win10_不忘初心2
govc vm.clone -vm /ha-datacenter/vm/Win10_不忘初心 -ds datastore1 /ha-datacenter/vm/Win10_不忘初心2
govc vm.clone -vm /Datacenter/vm/Win10_不忘初心 -snapshot v1 Win10_不忘初心v1